package com.example.demo.solon.cfg.controller;

import com.example.demo.solon.cfg.service.CfgService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.List;
import java.util.Properties;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Get;
import org.noear.solon.annotation.Inject;
import org.noear.solon.annotation.Mapping;

/**
 * @author airhead
 */
@Api("配置管理")
@Controller
@Mapping("/cfg")
public class CfgController {
  @Inject private CfgService service;

  @Get
  @Mapping("list")
  @ApiOperation("list")
  public List<Properties> list() {
    return service.list();
  }
}
